<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8"%>
<%
	String depChart = (String) request.getAttribute("depChart");
	if (depChart == null)
		depChart = "";
%>
<html>
<head>
<link type="text/css" rel="stylesheet" href="js/jOrgChart/css/jquery.jOrgChart.css" />
<link type="text/css" rel="stylesheet" href="css/style.css"/>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/jOrgChart/jquery.jOrgChart.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<title>Organization Chart</title>
</head>
<% String mode = request.getParameter("mode");%>
<body>
    <br>
	<h1 class="page_title"><%=("update".equals(mode))?"Update ":"" %>Organization Chart</h1>
	<br>
	<%=depChart%>
	<div id="orgchart_container"></div>
	<script>
		initOrgChart("orgchart_container", <%=("update".equals(mode))?"true":"false"%>);
	</script>
</body>
</html>
